#include <iostream>
#include <conio.h>
 
int main(){
	double x[10];
	int choser = 0;
	double mynumb = 0.0;
	int stugox = 0;
	for(int i = 0 ; i < 10 ; ++i){
		std:: cout << "x[" <<i <<"] = ";
		std:: cin >> x[i] ;
	}
	std::cout << "if you want found that element where don`t equal 0 press 0 or,if you want found your number in massiv press 1" << std::endl;
	std:: cin >> choser;
	if(0 == choser){
		std::cout << "that elemnts where dont equal 0";
		for(int i = 0 ; i<10 ; i++){
			if(x[i] != 0 ){
				std::cout << "x[" << i << "] = " << x[i] << std::endl;
			}
		}
	}
	else if(1 == choser){
		std::cout << "mynumber = ";
		std::cin >> mynumb;
		for(int i = 0 ; i<10 ; i++){
			if(x[i] == mynumb ){
				std::cout << "x[" << i << "] = " << x[i] << std::endl;
				stugox++;
			}
		}
			if( 0 == stugox ){
				std::cout << "mynumber dont` found" << std::endl;
			}
	}
	else{
		std::cout << "you chose false version" << std::endl;
	}

	getch();
	return 0;
}